package com.tao.erp.goods.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.tao.erp.goods.dao.GoodsMapper;
import com.tao.erp.goods.pojo.Goods;
import com.tao.erp.goods.service.GoodsService;

@Service
public class GoodsServiceImpl implements GoodsService {

	@Autowired
	private GoodsMapper goodsMapper;

	@Override
	public List<Goods> selectGoodsList(Goods goods) {
		return goodsMapper.selectGoodsList(goods);
	}

	@Override
	public Goods selectGoodsById(Integer uuid) {
		return goodsMapper.selectGoodsById(uuid);
	}

	@Override
	public int insertGoods(Goods goods) {
		return goodsMapper.insertGoods(goods);
	}

	@Override
	public int deleteGoodsById(Integer uuid) {
		return goodsMapper.deleteGoodsById(uuid);
	}

	@Override
	public int updateGoods(Goods goods) {
		return goodsMapper.updateGoods(goods);
	}
}
